using UnityEngine;

public class LbDistrictPlayers : MonoBehaviour
{
	[SerializeField]
	private MapDistrict district;

	[SerializeField]
	private UILabel lbl;

	private void Awake()
	{
		lbl = GetComponent<UILabel>();
		lbl.gameObject.SetActive(false);
		district = GetComponentInParent<MapDistrict>();
		if ((bool)district)
		{
			district.lblPopLink = lbl;
		}
	}

	private void OnEnable()
	{
		if ((bool)district)
		{
			lbl.text = string.Empty;
		}
	}
}
